Ext.getUrlParam = function(param) {
	var params = Ext.urlDecode(location.search.substring(1));
	return param ? params[param] : params;
};
Ext.ns('TaxonTagger');
Ext.onReady(function() {

	Ext.QuickTips.init();
	
	lang = Ext.getUrlParam('lang');
	if(!lang){
		lang = 'en';
	};
	
	Ext.fly(document.body).on('contextmenu', function(e, target) {
		e.preventDefault();
	});

	// Load Settings from LocalStorage and if not there use defaults
	//TaxonTagger.settings = Ext.decode(localStorage.getItem("settings")) || defaultSettings;
	var tools = new TaxonTagger.toolbar({
		renderTo: document.body
	//,	defaultSettings : defaultSettings
	});

});